package com.xugou.dao;

import com.xugou.pojo.Cost;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xugou
 * @date 2022/5/2  21:56
 */
public interface CostDao {

    //通过订单号获取订单费用
    Cost getCostByOrderId(@Param("orderId") int id);

    //修该订单费用
    int updateOrderCost(Cost cost);

    //给订单增加相应的费用
    int bindCostOfOrder(Cost cost);

    //通过订单id删除订单费用
    int deleteCost(@Param("orderId") int id);

}
